package com.test.pattern.proxy.cglib_proxy;

/**
 * @ClassName: Client
 * @description:
 * @author: Mr du
 * @create: 2024-02-19 22:12
 */
public class Client {

    public static void main(String[] args) {
        //创建代理对象工厂
        ProxyFactory factory = new ProxyFactory();
        //获取代理对象
        TrainStation proxyObject = factory.getProxyObject();
        //调用代理对象中sell方法卖票
        proxyObject.sell();
    }
}
